package com.lesso.lzh.sunflower.pojo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * RelEmployeeDeviceDTO
 *
 * @author zqz
 * @since 2025-07-05
 */
@Data
public class RelEmployeeDeviceDTO implements Serializable {
    private static final long serialVersionUID = 20250705L;

    private Long id;

    @NotNull(message = "员工ID不能为空")
    private Long employeeId;

    @NotNull(message = "设备编码不能为空")
    private String deviceCode;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate authorizationDate;

    @NotNull(message = "授权状态不能为空")
    private Integer authorizationStatus;
}